home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Video Toaster 4.3
/
Video Toaster v4.3.iso
/
3.1
/
toasterall
/
arexx_examples
/
toastcmx1frame.rexx
< prev
next >
Wrap
OS/2 REXX Batch file
|
1993-06-06
|
2KB
|
46 lines
/* ToastCMX1Frame.rexx, Uses GPI trigger from CMX editor for single frame animation */
/* By Arnie Cachelin © 1992 NewTek Inc. */
/*
This program will display ALL the frames in the current FrameStore
directory in a slideshow manner, using whatever transition is currently
selected. It waits for input from the GPI trigger so you can control your
your presentation slideshow style. You can easily give your Toaster
GPI pulses by attaching a spare mouse or joystick to the second mouse
port then clicking the button. You can also find long joystick extender
cables at places like Radio Shack. You may want to move the frames you
plan to show to another framestore directory, like RAM:, so that the
presentation can loop, without displaying unwanted images.
To set up, load the first frame of the animation into DV1,
put bars or something else into DV2, run this script from a shell
by typing "rx ToastCMX1Frame", and start the edit. The first frame
(which you loaded) will be recorded, and then the next (in order) will
be recorded during the 1 sec wait after the editor sends the GPI pulse in.
*/
OPTIONS RESULTS
TOASTERLIB="ToasterARexx.port"
IF ~SHOW('Libraries',TOASTERLIB) THEN
IF ~ADDLIB(TOASTERLIB , 0) THEN x=Bummer(" Please start your Video Toaster!")
Switcher(TOSW) /* Go to Switcher screen */
Switcher(TOSW) /* Go to Switcher screen */
Switcher(SGPI,POS) /* Set GPI trigger to positive (leading edge of pulse) */
Switcher(MDV1) /* put Program and Preview outputs on framestores */
Switcher(PDV2)
Switcher(GOLD) /* Set keypad to frame loading */
N=Switcher(STAT,KNUM) /* Get the current keypad number, so we know where we started */
Switcher(KEYP) /* hit the '+' key */
DO WHILE Switcher(STAT,KNUM)~=N /* Go until we return to the starting frame */
Switcher(MDV2) /* put DV2 on Program out, force to load next into DV1 */
Switcher(DOEN) /* hit enter key to load */
Switcher(MDV1) /* put DV1 on Program out */
Switcher(KEYP) /* hit the '+' key */
Switcher(WAIT,GPI) /* Wait for GPI trigger to come in */
Switcher(FRES) /* Reset frame counter */
Switcher(WAIT,30) /* Wait for 30 frames (1 sec) to pass */
END